package cn.bandeqing.workerEquipment.entity;

import cn.bandeqing.frame.mybatis.config.InsertOrUpdateListener;
import cn.bandeqing.frame.mybatis.entity.BaseEntity;
import cn.bandeqing.worker.req.UploadEquipmentReq;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 服务人员设备 实体类。
 *
 * @author fugui
 * @since 2024-03-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bdq_worker_equipment", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
@AutoMapper(target = UploadEquipmentReq.class, convertGenerate = false)
public class WorkerEquipment extends BaseEntity {

    @Id(keyType = KeyType.Auto)
    private Long workerEquipmentId;

    private Long workerId;

    private String workerName;

    private String deviceBrand;

    private String deviceId;

    private String deviceModel;

    private String deviceType;

    private String system;

    private String platform;

    private String deviceCid;

    private String applyVersion;

    private Boolean locationAuth;

    private Boolean cameraAuth;

    private Boolean photoAuth;

}
